package com.caipin.domain.table;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:36
 * @Description: TODO
 */

@TableName("t_security_car")
public class SecurityCar {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long imageId;

    private String deviceId;

    private Integer channelId;

    private String snapTime;

    private String type;

    private Integer bboxX;

    private Integer bboxY;

    private Integer bboxWidth;

    private Integer bboxHeight;

    private Double probability;

    private String carLicenceNumber;

    private String alarmInfoType;

    private String alarmInfoName;

    public com.caipin.domain.table.SecurityCar setId(Long id) {
        this.id = id;
        return this;
    }

    public com.caipin.domain.table.SecurityCar setImageId(Long imageId) {
        this.imageId = imageId;
        return this;
    }

    public com.caipin.domain.table.SecurityCar setDeviceId(String deviceId) {
        this.deviceId = deviceId;
        return this;
    }

    public com.caipin.domain.table.SecurityCar setChannelId(Integer channelId) {
        this.channelId = channelId;
        return this;
    }

    public com.caipin.domain.table.SecurityCar setSnapTime(String snapTime) {
        this.snapTime = snapTime;
        return this;
    }

    public com.caipin.domain.table.SecurityCar setType(String type) {
        this.type = type;
        return this;
    }

    public com.caipin.domain.table.SecurityCar setBboxX(Integer bboxX) {
        this.bboxX = bboxX;
        return this;
    }

    public com.caipin.domain.table.SecurityCar setBboxY(Integer bboxY) {
        this.bboxY = bboxY;
        return this;
    }

    public com.caipin.domain.table.SecurityCar setBboxWidth(Integer bboxWidth) {
        this.bboxWidth = bboxWidth;
        return this;
    }

    public com.caipin.domain.table.SecurityCar setBboxHeight(Integer bboxHeight) {
        this.bboxHeight = bboxHeight;
        return this;
    }

    public com.caipin.domain.table.SecurityCar setProbability(Double probability) {
        this.probability = probability;
        return this;
    }

    public com.caipin.domain.table.SecurityCar setCarLicenceNumber(String carLicenceNumber) {
        this.carLicenceNumber = carLicenceNumber;
        return this;
    }

    public com.caipin.domain.table.SecurityCar setAlarmInfoType(String alarmInfoType) {
        this.alarmInfoType = alarmInfoType;
        return this;
    }

    public com.caipin.domain.table.SecurityCar setAlarmInfoName(String alarmInfoName) {
        this.alarmInfoName = alarmInfoName;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.table.SecurityCar))
            return false;
        com.caipin.domain.table.SecurityCar other = (com.caipin.domain.table.SecurityCar)o;
        if (!other.canEqual(this))
            return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
            return false;
        Object this$imageId = getImageId(), other$imageId = other.getImageId();
        if ((this$imageId == null) ? (other$imageId != null) : !this$imageId.equals(other$imageId))
            return false;
        Object this$deviceId = getDeviceId(), other$deviceId = other.getDeviceId();
        if ((this$deviceId == null) ? (other$deviceId != null) : !this$deviceId.equals(other$deviceId))
            return false;
        Object this$channelId = getChannelId(), other$channelId = other.getChannelId();
        if ((this$channelId == null) ? (other$channelId != null) : !this$channelId.equals(other$channelId))
            return false;
        Object this$snapTime = getSnapTime(), other$snapTime = other.getSnapTime();
        if ((this$snapTime == null) ? (other$snapTime != null) : !this$snapTime.equals(other$snapTime))
            return false;
        Object this$type = getType(), other$type = other.getType();
        if ((this$type == null) ? (other$type != null) : !this$type.equals(other$type))
            return false;
        Object this$bboxX = getBboxX(), other$bboxX = other.getBboxX();
        if ((this$bboxX == null) ? (other$bboxX != null) : !this$bboxX.equals(other$bboxX))
            return false;
        Object this$bboxY = getBboxY(), other$bboxY = other.getBboxY();
        if ((this$bboxY == null) ? (other$bboxY != null) : !this$bboxY.equals(other$bboxY))
            return false;
        Object this$bboxWidth = getBboxWidth(), other$bboxWidth = other.getBboxWidth();
        if ((this$bboxWidth == null) ? (other$bboxWidth != null) : !this$bboxWidth.equals(other$bboxWidth))
            return false;
        Object this$bboxHeight = getBboxHeight(), other$bboxHeight = other.getBboxHeight();
        if ((this$bboxHeight == null) ? (other$bboxHeight != null) : !this$bboxHeight.equals(other$bboxHeight))
            return false;
        Object this$probability = getProbability(), other$probability = other.getProbability();
        if ((this$probability == null) ? (other$probability != null) : !this$probability.equals(other$probability))
            return false;
        Object this$carLicenceNumber = getCarLicenceNumber(), other$carLicenceNumber = other.getCarLicenceNumber();
        if ((this$carLicenceNumber == null) ? (other$carLicenceNumber != null) : !this$carLicenceNumber.equals(other$carLicenceNumber))
            return false;
        Object this$alarmInfoType = getAlarmInfoType(), other$alarmInfoType = other.getAlarmInfoType();
        if ((this$alarmInfoType == null) ? (other$alarmInfoType != null) : !this$alarmInfoType.equals(other$alarmInfoType))
            return false;
        Object this$alarmInfoName = getAlarmInfoName(), other$alarmInfoName = other.getAlarmInfoName();
        return !((this$alarmInfoName == null) ? (other$alarmInfoName != null) : !this$alarmInfoName.equals(other$alarmInfoName));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.table.SecurityCar;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $imageId = getImageId();
        result = result * 59 + (($imageId == null) ? 43 : $imageId.hashCode());
        Object $deviceId = getDeviceId();
        result = result * 59 + (($deviceId == null) ? 43 : $deviceId.hashCode());
        Object $channelId = getChannelId();
        result = result * 59 + (($channelId == null) ? 43 : $channelId.hashCode());
        Object $snapTime = getSnapTime();
        result = result * 59 + (($snapTime == null) ? 43 : $snapTime.hashCode());
        Object $type = getType();
        result = result * 59 + (($type == null) ? 43 : $type.hashCode());
        Object $bboxX = getBboxX();
        result = result * 59 + (($bboxX == null) ? 43 : $bboxX.hashCode());
        Object $bboxY = getBboxY();
        result = result * 59 + (($bboxY == null) ? 43 : $bboxY.hashCode());
        Object $bboxWidth = getBboxWidth();
        result = result * 59 + (($bboxWidth == null) ? 43 : $bboxWidth.hashCode());
        Object $bboxHeight = getBboxHeight();
        result = result * 59 + (($bboxHeight == null) ? 43 : $bboxHeight.hashCode());
        Object $probability = getProbability();
        result = result * 59 + (($probability == null) ? 43 : $probability.hashCode());
        Object $carLicenceNumber = getCarLicenceNumber();
        result = result * 59 + (($carLicenceNumber == null) ? 43 : $carLicenceNumber.hashCode());
        Object $alarmInfoType = getAlarmInfoType();
        result = result * 59 + (($alarmInfoType == null) ? 43 : $alarmInfoType.hashCode());
        Object $alarmInfoName = getAlarmInfoName();
        return result * 59 + (($alarmInfoName == null) ? 43 : $alarmInfoName.hashCode());
    }

    public String toString() {
        return "SecurityCar(id=" + getId() + ", imageId=" + getImageId() + ", deviceId=" + getDeviceId() + ", channelId=" + getChannelId() + ", snapTime=" + getSnapTime() + ", type=" + getType() + ", bboxX=" + getBboxX() + ", bboxY=" + getBboxY() + ", bboxWidth=" + getBboxWidth() + ", bboxHeight=" + getBboxHeight() + ", probability=" + getProbability() + ", carLicenceNumber=" + getCarLicenceNumber() + ", alarmInfoType=" + getAlarmInfoType() + ", alarmInfoName=" + getAlarmInfoName() + ")";
    }

    public Long getId() {
        return this.id;
    }

    public Long getImageId() {
        return this.imageId;
    }

    public String getDeviceId() {
        return this.deviceId;
    }

    public Integer getChannelId() {
        return this.channelId;
    }

    public String getSnapTime() {
        return this.snapTime;
    }

    public String getType() {
        return this.type;
    }

    public Integer getBboxX() {
        return this.bboxX;
    }

    public Integer getBboxY() {
        return this.bboxY;
    }

    public Integer getBboxWidth() {
        return this.bboxWidth;
    }

    public Integer getBboxHeight() {
        return this.bboxHeight;
    }

    public Double getProbability() {
        return this.probability;
    }

    public String getCarLicenceNumber() {
        return this.carLicenceNumber;
    }

    public String getAlarmInfoType() {
        return this.alarmInfoType;
    }

    public String getAlarmInfoName() {
        return this.alarmInfoName;
    }
}

